<template>
	<view class="sendcar">
		<!-- <u-navbar  title="派单列表"  :background="background" title-color="#FFF" back-icon-color="#fff"></u-navbar> -->
		<view class="public-nav">
			<view class="public-nav-fixed">
				<view class="public-nav-top" style="background-color: #007AFF;color: #FFFFFF;">
					<view class="public-nav-top-status-bar" :style="{ height: systemInfo.statusBarHeight + 'px' }">
					</view>
					<view class="public-nav-top-navbar-inner" :style="{ height: navHeight + 'px', lineHeight: navHeight + 'px' }">
						<text class="iconfont iconarrow_left-copy" @click="returnclick"></text>
						<view>选择车辆</view>
					</view>
				</view>
			</view>
			<view class="public-nav-placeholder"
				:style="{ height: Number(navHeight) + Number(systemInfo.statusBarHeight) + 'px' }">
			</view>
		</view>
		<view class="sendcar-li" v-for="(item, index) in carList" :key="index">
			<view class="sendcar-li-top" :class="item.classStyle">
				<view class="sendcar-li-top-carnum">
					{{ item.carPlate }}
				</view>
				<view class="sendcar-li-content-number">
					<text class="SLCW-operation" @click="Reduction(item, 'small', 'weight')">-</text>
					<text class="SLCW-ipt" @click="numtap(item, 'small', 'weight')">{{ item.ORDTB400CA07 }}</text>
					<text class="SLCW-operation" @click="add(item, 'small', 'weight')">+</text>
					<label>
						吨
					</label>
				</view>
				<text class="iconfont iconyichu" @click="cardelete(item)"></text>
			</view>

		</view>
		<view class="sendcar-addcar " @click="carshow = true">
			+继续添加车辆
		</view>
		<view class="sendcar-bottom-height">
		</view>
		<view class="sendcar-bottome-nav">
			<view class="sendcar-bottome-nav-l">

				<view class="sendcar-bottome-nav-l-b">
					<text>共{{ sendTotalCheshu }}车</text>
				</view>
			</view>
			<view class="sendcar-bottome-nav-r">
				<button type="default" @click="carUnfinished">承运接单</button>
			</view>
		</view>
		<u-popup v-model="carshow" length="100%" mode="right" @close="carclose">
			<view class="iscar-nav">
				<view class="iscar-nav-top" v-if="platform == false"></view>
				<view v-else :style="{ height: systemInfo.statusBarHeight + 'px' }"></view>
				<view class="iscar-nav-search">
					<view class="iscar-nav-search-btn" @click="carshow = false">
						返回
					</view>
					<view class="iscar-nav-search-ipt">
						<u-search @custom="carcustom" placeholder="请输入车牌号" @change="valChange" v-model="carSearch"
							:show-action="true" action-text="添加" :action-style="actionStyle"></u-search>
					</view>
				</view>
				<view class="iscar-nav-btn">
					<view @click="checkedAll" v-if="ischeckedAll == true">全选</view>
					<view @click="nocheckedAll" v-if="ischeckedAll == false">全不选</view>
					<view @click="determine">确定</view>
				</view>
			</view>
			<view class="iscar-content" :style="platform == false ? 'padding-top: 24vh;' : 'padding-top: 14vh'">
				<view v-if="platform == true" :style="{ height: systemInfo.statusBarHeight + 'px' }"></view>
				<u-checkbox-group :wrap="true" @change="checkboxGroupChange">
					<u-checkbox size='40' label-size="38" v-model="item.checked" v-for="(item, index) in carnumlist" :key="index"
						:name="item.name">{{ item.name }}</u-checkbox>
				</u-checkbox-group>
			</view>
		</u-popup>
		<u-keyboard ref="uKeyboard" :mask='false' mode="number" v-model="numkeyshow" @change="numkeychange"
			@backspace="numkeybackspace"></u-keyboard>
		<u-toast ref="uToast" />
	</view>
</template>

<script>
import {
	Decimal
} from '../../static/api/decimal.min.js'
export default {
	data() {
		return {
			numkeyshow: false,
			carshow: true,
			background: {
				backgroundColor: '#00a1f1',
			},
			actionStyle: {
				backgroundColor: '#00a1f1',
				color: '#FFF',
				width: '100rpx',
				height: '60rpx',
				lineHeight: '60rpx',
				borderRadius: '15rpx',
				margin: '0 20rpx',
			},
			way: 1,
			userinfo: JSON.parse(uni.getStorageSync('userinfo')),
			// erpInfo: JSON.parse(uni.getStorageSync('erpinfo')),
			materInfo: JSON.parse(uni.getStorageSync('materInfo')),
			shaftList: '',
			shaftInfo: '',
			carnumlist: [],
			carnumlistinit: [],
			carList: [],
			arrCph: [],
			carSearch: '',
			tapClickItem: {},
			AuthorizationOBJ: '',
			shoppingCartShow: false,
			navId: '',
			xqId: '',
			ischeckedAll: true,
			systemInfo: '',
			navHeight: '',
			Erptype: '',
			tareMo: 15,
			platform: uni.getStorageSync('platform'),
			buy: ''
		}
	},
	onLoad(option) {
		if (this.userinfo.sign == 'CUS-3') {
			this.queryAuthorization()
		}
		if (uni.getStorageSync('Erptype')) {
			this.Erptype = JSON.parse(uni.getStorageSync('Erptype'))
		}
		this.systemInfo = uni.getSystemInfoSync()
		this.navHeight = this.systemInfo.platform == 'ios' ? 44 : 48;

		console.log(option)
		this.xqId = option.xqId
		this.buy = option.buy
	},
	onShow() {
		uni.removeStorageSync('sendobj')
		uni.removeStorageSync('obj')
		this.valChange()
	},
	computed: {
		sendTotalCheshu() {
			if (this.carList.length == 0) return 0
			var Cheshu = 0
			Cheshu = this.carList.length
			return Cheshu
		},
	},
	watch: {},
	methods: {
		returnclick() {
			if (this.buy == 'buy') {
				uni.navigateBack({
					delta: 1
				})
			} else {
				uni.reLaunch({
					url: '/pages/tabbar/receivingOrder/receivingOrder'
				})
			}
		},
		queryAuthorization() { //查询子账户权限
			uni.showLoading({
				title: '加载中...',
				mask: true
			});
			uni.request({
				url: this.baseUrl + '/orm/ormtb417/selectAccess/' + this.userinfo.ORMTB417ID,
				method: 'GET',
				success: (res) => {
					console.log(res);
					uni.hideLoading();
					if (res.data.code == 200) {
						this.AuthorizationOBJ = res.data.data
					} else {
						this.$refs.uToast.show({
							title: res.data.message,
							type: 'default',
							icon: false
						})
					}
				},
				fail: (res) => {
					uni.hideLoading();
					this.$refs.uToast.show({
						title: res.errMsg,
						type: 'default',
						icon: false
					})
				}
			});
		},
		QueryShaft() { //获取轴数
			uni.showLoading({
				title: '加载中...',
				mask: true
			});
			uni.request({
				url: this.baseUrl + '/order/v1/order105/888888',
				method: 'GET',
				success: (res) => {
					console.log(res);
					uni.hideLoading();
					if (res.data.result == 1) {
						this.shaftList = res.data.data || []
						for (var i = 0; i < this.shaftList.length; i++) {
							if (i == 0) {
								this.shaftList[i].Class = 'buttom-active'
								this.shaftInfo = this.shaftList[i]
							} else {
								this.shaftList[i].Class = ''
							}
						}
					} else {
						this.$refs.uToast.show({
							title: res.data.message,
							type: 'default',
							icon: false
						})
					}
				},
				fail: (res) => {
					uni.hideLoading();
					this.$refs.uToast.show({
						title: res.errMsg,
						type: 'default',
						icon: false
					})
				}
			});
		},
		wayClick(type) {
			this.way = type
			this.carList.forEach(item => {
				item.money = this.carmoney(item.ORDTB400CA07, item.tareMo)
				item.initCarmoney = this.initCarmoney(item.ORDTB400CA07, item.tareMo)
			})
		},
		shaftClick(e) {
			this.shaftInfo = e
			this.shaftList.forEach(item => {
				if (e.SETTB206CA00 == item.SETTB206CA00) {
					item.Class = 'buttom-active'
				} else {
					item.Class = ''
				}
			})
			this.carList.forEach(item => {
				item.ORDTB400CA07 = this.shaftInfo.SETTB206CA03 * 1
				item.money = this.carmoney(item.ORDTB400CA07, item.tareMo)
				item.initCarmoney = this.initCarmoney(item.ORDTB400CA07, item.tareMo)
			})
		},
		carcustom() {
			this.carSearch = ''
			uni.navigateTo({
				url: '/pages/vehicle/index'
			})

		},
		valChange() { //输入input发生变化
			this.carnumlist = []
			this.carSearch = this.carSearch.toUpperCase()
			uni.showLoading({
				title: '请求中...',
				mask: true
			});
			let id = '';
			if (this.userinfo.sign == 'CUS-1') {
				id = this.userinfo.ORMTB400ID
			} else if (this.userinfo.sign == 'CUS-2' || this.userinfo.sign == 'CUS-3') {
				id = this.userinfo.ORMTB410ID
			}
			let params = {
				sign: this.userinfo.sign,
				SETTB402CA00: this.carSearch,
				ID: id
			}
			if (this.buy == 'buy') {
				Object.assign(params, {
					ORMTB493ID: this.xqId
				})
			} else {
				Object.assign(params, {
					ORMTB460ID: this.xqId
				})
			}
			uni.request({
				url: this.baseUrl + '/set/settb402/selectSettb402BySign',
				method: 'POST',
				dataType: 'json',
				data: {
					...params
				},
				success: (res) => {
					console.log(res);
					if (res.data.code == 200) {
						var data = res.data.data
						this.carnumlist = []
						data.forEach(item => {
							this.carnumlist.push({
								checked: false,
								name: item.SETTB402CA00,
								tareMo: item.ORMTB440PZ,
								disabled: false
							})
						})
					} else {

					}
					uni.hideLoading();
				},
				fail: (res) => {
					uni.hideLoading();
					this.$refs.uToast.show({
						title: res.errMsg,
						type: 'default',
						icon: false
					})
				}
			});
		},
		carclose() {
			this.carSearch = ''
		},
		checkboxGroupChange(e) {
			var arr = []
			console.log(e)


			this.carnumlist.map(val => {
				if (val.checked == true) {
					arr.push(arr)
				}
			})
			if (arr.length == this.carnumlist.length) {
				this.ischeckedAll = false
			} else {
				this.ischeckedAll = true
			}
		},
		determine() {
			var that = this
			console.log(that.carnumlist)
			that.carnumlist.forEach(item => {
				if (item.checked == true) {
					var i = (that.carList || []).findIndex((profile) => profile.carPlate === item.name);
					console.log(i)
					if (i == '-1') {
						console.log(item)
						// var money = this.carmoney(50, item.tareMo)
						// var initCarmoney = this.initCarmoney(50, item.tareMo)
						var carObj = {
							carPlate: item.name,//车牌号
							ORDTB400CA07: 50, //申请重量
							ORDTB404CA03: 1, //申请车次
							tareMo: item.tareMo //皮重
							// money: money,
							// initCarmoney: initCarmoney
						}
						that.carList.push(carObj)
					}
				}
			})
			that.carshow = false
		},
		checkedAll() {
			this.carnumlist.map(val => {
				val.checked = true
			})
			this.ischeckedAll = false
		},
		nocheckedAll() {
			this.carnumlist.map(val => {
				val.checked = false
			})
			this.ischeckedAll = true
		},
		carUnfinished(type) { //校验车辆是否有未完成的订单
			if (this.carList.length == 0) {
				uni.showToast({
					title: '请选择车辆',
					duration: 5000,
					icon: 'none',
				});
				return
			}
			let flag = false;
			this.carList.forEach(item => {
				// console.log(item)
				if (item.ORDTB400CA07 < 20) {
					uni.showToast({
						title: '最小吨数不得低于20',
						duration: 5000,
						icon: 'none',
					});
					flag = false
					return
				}
				if (item.ORDTB400CA07 > 100) {
					uni.showToast({
						title: '最大吨数不得高于100',
						duration: 5000,
						icon: 'none',
					});
					flag = false
					return
				}
				flag = true
			})
			if (flag) {
				this.sumbSendOrders()
			}
		},
		sumbSendOrders() {
			var ORMTB410ID = ''
			if (this.userinfo.sign == 'CUS-2') {
				ORMTB410ID = this.userinfo.ORMTB410ID
			} else if (this.userinfo.sign == 'CUS-3') {
				ORMTB410ID = this.userinfo.ORMTB410ID
			}
			var sendobj = {
				ORMTB460ID: this.materInfo.ORMTB460ID, //需求id
				ORMTB410ID: ORMTB410ID, //接单人id
				PERTB005ID: this.userinfo.PERTB005ID,
				carList: this.carList
			}
			var str = JSON.stringify(sendobj)
			uni.setStorageSync('sendobj', str);
			if (this.buy === 'buy') {
				uni.navigateTo({
					url: `/pages/receivingMaterials/acceptCarriage`
				})
			} else {
				uni.navigateTo({
					url: `/pages/yfddxq/index`
				})
			}
		},
		cardelete(item) {
			var i = (this.carList || []).findIndex((profile) => profile.carPlate === item.carPlate);
			this.carList.splice(i, 1)
			var j = (this.carnumlist || []).findIndex((profile) => profile.name === item.carPlate);
			this.carnumlist[j].checked = false
		},
		Reduction(item, numtype, type) {
			var i = (this.carList || []).findIndex((profile) => profile.carPlate === item.carPlate);
			if (type == 'weight') {
				console.log(this.carList[i].ORDTB400CA07)
				if (this.carList[i].ORDTB400CA07 == 20) return uni.showToast({
					title: '请输入有效吨数',
					duration: 5000,
					icon: 'none',
				});

				// if (this.carList[i].ORDTB400CA07 == 0) return
				// uni.showToast({
				// 	title: '请输入有效吨数',
				// 	duration: 5000,
				// 	icon: 'none',
				// });
				this.carList[i].ORDTB400CA07 = new Decimal(this.carList[i].ORDTB400CA07).sub(new Decimal(1))
				this.carList[i].ORDTB400CA07 = Number(this.carList[i].ORDTB400CA07.toString().match(
					/^\d+(?:\.\d{0,2})?/));

				// this.carList[i].money = this.carmoney(this.carList[i].ORDTB400CA07, this.carList[i].tareMo)
				// this.carList[i].initCarmoney = this.initCarmoney(this.carList[i].ORDTB400CA07, this.carList[i].tareMo)
			}
			else {
				if (this.carList[i].ORDTB404CA03 == 1) return
				this.carList[i].ORDTB404CA03 = new Decimal(this.carList[i].ORDTB404CA03).sub(new Decimal(1))
				this.carList[i].ORDTB404CA03 = Number(this.carList[i].ORDTB404CA03.toString().match(
					/^\d+(?:\.\d{0,2})?/));
			}
		},
		add(item, numtype, type) {
			var i = (this.carList || []).findIndex((profile) => profile.carPlate === item.carPlate);
			if (type == 'weight') {

				if (this.carList[i].ORDTB400CA07 == 100) return uni.showToast({
					title: '不得大于100吨',
					duration: 5000,
					icon: 'none',
				});

				this.carList[i].ORDTB400CA07 = new Decimal(this.carList[i].ORDTB400CA07).add(new Decimal(1))
				// this.carList[i].money = this.carmoney(this.carList[i].ORDTB400CA07, this.carList[i].tareMo)
				// this.carList[i].initCarmoney = this.initCarmoney(this.carList[i].ORDTB400CA07, this.carList[i].tareMo)
				this.carList[i].ORDTB400CA07 = Number(this.carList[i].ORDTB400CA07.toString().match(
					/^\d+(?:\.\d{0,2})?/));
			}
			// else {
			// 	this.carList[i].ORDTB404CA03 = new Decimal(this.carList[i].ORDTB404CA03).add(new Decimal(1))
			// 	this.carList[i].ORDTB404CA03 = Number(this.carList[i].ORDTB404CA03.toString().match(
			// 		/^\d+(?:\.\d{0,2})?/));
			// 	if (this.carList[i].ORDTB404CA03 > 9999) return this.carList[i].ORDTB404CA03 = 9999
			// }
		},
		numtap(item, numtype, type) {
			console.log(item)
			console.log(this.tapClickItem.item)
			this.numkeyshow = true
			this.tapClickItem.item = item
			this.tapClickItem.numtype = numtype
			this.tapClickItem.type = type
		},
		numkeychange(e) {
			var j = (this.carList || []).findIndex((profile) => profile.carPlate === this.tapClickItem.item
				.carPlate);
			if (this.tapClickItem.numtype == "whole") {
				if (e == '.') return
				if (this.tapClickItem.type == 'time') {
					if (this.carList[j].ORDTB404CA03 == '' && e == 0) return
					this.carList[j].ORDTB404CA03 = this.carList[j].ORDTB404CA03 + '' + e
					if (this.carList[j].ORDTB404CA03.indexOf(".") < 0 && num !=
						"") { //以上已经过滤，此处控制的是如果没有小数点，首位不能为类似于 01、02的金额
						this.carList[j].ORDTB404CA03 = parseFloat(this.carList[j].ORDTB404CA03)
					}
					if (this.carList[j].ORDTB404CA03 > 9999) return this.carList[j].ORDTB404CA03 = 9999
				}
			}
			else {
				if (this.tapClickItem.type == 'weight') {
					var num = String(this.carList[j].ORDTB400CA07)
					num = num + e
					num = num.replace(/[^\d.]/g, ""); //清除“数字”和“.”以外的字符
					num = num.replace(/^\./g, "1"); //验证第一个字符是数字
					num = num.replace(/\.{2,}/g, "."); //只保留第一个. 清除多余的
					num = num.replace(".", "$#$").replace(/\./g, "").replace("$#$", ".");
					num = num.replace(/^(\-)*(\d+)\.(\d\d).*$/, '$1$2.$3'); //只能输入两个小数
					if (num.indexOf(".") < 0 && num != "") { //以上已经过滤，此处控制的是如果没有小数点，首位不能为类似于 01、02的金额
						num = parseFloat(num)
					}
					num = String(num)
					if (num.indexOf(".") > 0) {
						var arr = num.split('.')
						if (arr[1].length > 1) {
							num = Number(num.toString().match(/^\d+(?:\.\d{0,2})?/));
						}
					}
					console.log(num)
					// this.carList[j].money = this.carmoney(num, this.carList[j].tareMo)
					// this.carList[j].initCarmoney = this.initCarmoney(num, this.carList[j].tareMo)
					this.carList[j].ORDTB400CA07 = 1
					this.$nextTick(function () {
						this.carList[j].ORDTB400CA07 = num
					})
				}
			}
		},
		numkeybackspace() {
			var j = (this.carList || []).findIndex((profile) => profile.carPlate === this.tapClickItem.item
				.carPlate);
			var num
			if (this.tapClickItem.type == "weight") {
				num = String(this.carList[j].ORDTB400CA07)
				this.carList[j].ORDTB400CA07 = num.substr(0, num.length - 1)
				if (this.carList[j].ORDTB400CA07 == '') {
					this.carList[j].ORDTB400CA07 = 0
					// this.carList[j].money = this.carmoney(this.carList[j].ORDTB400CA07, this.carList[j].tareMo)
					// this.carList[j].initCarmoney = this.initCarmoney(this.carList[j].ORDTB400CA07, this.carList[j]
					// 	.tareMo)
					return
				}
				// this.carList[j].money = this.carmoney(this.carList[j].ORDTB400CA07, this.carList[j].tareMo)
				// this.carList[j].initCarmoney = this.initCarmoney(this.carList[j].ORDTB400CA07, this.carList[j].tareMo)
			} else {
				num = String(this.carList[j].ORDTB404CA03)
				this.carList[j].ORDTB404CA03 = num.substr(0, num.length - 1)
				if (this.carList[j].ORDTB404CA03 == '') return this.carList[j].ORDTB404CA03 = 0
			}
		},
		carmoney(weight, tareMo) {
			if (this.way == 1) {
				var Jweigth = new Decimal(weight).sub(new Decimal(tareMo))
				// if (Jweigth < 20) {
				// 	Jweigth = 20
				// }
				var money = new Decimal(Jweigth).mul(new Decimal(this.materInfo.settb109CA01))

			} else {
				var money = new Decimal(weight).mul(new Decimal(this.materInfo.settb109CA01))
			}

			money = Number(money.toString().match(/^\d+(?:\.\d{0,2})?/));
			money = Number(money.toFixed(2));
			console.log(money)
			return money
		},
		initCarmoney(weight, tareMo) {
			if (this.way == 1) {
				var Jweigth = new Decimal(weight).sub(new Decimal(tareMo))
				// if (Jweigth < 20) {
				// 	Jweigth = 20
				// }
				var money = new Decimal(Jweigth).mul(new Decimal(this.materInfo.settb109CA01_ys))
			} else {
				var money = new Decimal(weight).mul(new Decimal(this.materInfo.settb109CA01_ys))
			}
			console.log(money)
			money = Number(money.toString().match(/^\d+(?:\.\d{0,2})?/));
			console.log(money)
			return money
		},
	}
}
</script>

<style scoped>
.sendcar {
	width: 100vw;
	min-height: 100vh;
	background-color: #e3e3e3;
}

.sendcar-top {
	display: flex;
	border-bottom: 2rpx solid #e3e3e3;
	padding-bottom: 20rpx;
	background-color: #fff;
}

.sendcar-top-way {
	margin-left: 40rpx;
}

.sendcar-top-way button {
	display: inline-block;
	height: 50rpx;
	width: 100rpx;
	line-height: 50rpx;
	font-size: 38rpx;
	border: none;
	background-color: #e3e3e3;
	color: #fff;
	padding: 0;
	margin-top: 40rpx;
	margin-left: 30rpx;
}

.sendcar-top-way .buttom-active {
	background-color: #02a2f4;
}

.sendcar-top-shaft {
	flex: 1;
}

.sendcar-top-shaft button {
	display: inline-block;
	height: 40rpx;
	width: 70rpx;
	line-height: 40rpx;
	font-size: 24rpx;
	border: 1rpx solid #e3e3e3;
	background-color: #fff;
	color: #666;
	padding: 0;
	margin-top: 45rpx;
	margin-left: 40rpx;
}

.sendcar-top-shaft .buttom-active {
	border: 2rpx solid #02a2f4;
	color: #02a2f4;
}

.sendcar-top-shaft button+button {
	margin-left: 20rpx;
}

.sendcar-li {
	padding: 30rpx 20rpx;
	background-color: #fff;
}

.sendcar-li-top {
	display: flex;
	justify-content: space-between;
	color: #333;
	font-size: 40rpx;
	font-weight: 600;
}

.sendcar-li-top-active {
	background-color: rgba(255, 88, 88, .6);
}

.sendcar-li-top .iconyichu {
	color: #999;
	margin-right: 30rpx;
	font-size: 36rpx;
}

.sendcar-li-content {
	display: flex;
	justify-content: space-between;
	margin-top: 30rpx;
}

.SLCW-operation {
	display: inline-block;
	width: 40rpx;
	height: 40rpx;
	line-height: 40rpx;
	border-radius: 50%;
	font-size: 36rpx;
	background-color: #999;
	color: #fff;
	text-align: center;
	vertical-align: middle;
}

.SLCW-ipt {
	display: inline-block;
	width: 130rpx;
	height: 60rpx;
	line-height: 60rpx;
	text-align: center;
	font-size: 32rpx;
	border: 2rpx solid rgba(0, 212, 254, .7);
	border-radius: 5rpx;
	margin: 0 15rpx;
	overflow: hidden;
	vertical-align: middle;
}

.sendcar-li-content-number label {
	margin-left: 10rpx;
}

.iscar-nav {
	position: fixed;
	top: 0;
	width: 100%;
	/* height: 22vh; */
	/* box-sizing: border-box; */
	z-index: 2;
	background-color: #FFF;
}

.iscar-content {
	/* margin-top: 24vh; */
}

.iscar-nav-top {
	height: 10vh;
	/* background-color: #e3e3e3; */
}

.iscar-nav-search {
	display: flex;
	/* background-color: #e3e3e3; */
	padding-bottom: 20rpx;
}

.iscar-nav-search-ipt {
	flex: 1;
}

.iscar-nav-search-btn {
	width: 100rpx;
	height: 60rpx;
	line-height: 60rpx;
	/* font-size: 28rpx; */
	text-align: center;
	color: #333;
	margin: 0 20rpx;
}

.iscar-nav-btn {
	display: flex;
	justify-content: space-between;
	height: 90rpx;
	line-height: 90rpx;
	font-size: 36rpx;
	color: #333;
	padding: 0 40rpx;
	border-top: 2rpx solid #e3e3e3;
	border-bottom: 2rpx solid #e3e3e3;
	background-color: #fff;
}

.iscar-nav-btn view+view {
	color: #02a2f4;
}

.iscar-nav-btn view {
	/* width: 100rpx; */
	text-align: center;
}

.iscar-content {
	padding-left: 30rpx;
}

.sendcar-addcar {
	padding: 20rpx 20rpx;
	color: #02a2f4;
	font-size: 38rpx;
	background-color: #fff;
}

.sendcar-bottom-height {
	height: 120rpx;
}

.sendcar-bottome-nav {
	position: fixed;
	left: 0;
	bottom: 0;
	width: 100%;
	display: flex;
	height: 120rpx;
	overflow: hidden;
	box-sizing: border-box;
	z-index: 2;
	background-color: #fff;
}

.sendcar-bottome-nav-l {
	flex: 1;
	text-align: right;
	padding-right: 20rpx;
	margin-top: 20rpx;
}

.sendcar-bottome-nav-l-t {
	height: 40rpx;
	font-size: 34rpx;
	color: #333;
	overflow: hidden;
}

.sendcar-bottome-nav-l-b {
	height: 40rpx;
	overflow: hidden;
	/* font-size: 30rpx; */
	color: #999;
}

.sendcar-bottome-nav-l-b text {
	margin-right: 10rpx;
}

.sendcar-bottome-nav-r>button {
	display: inline-block;
	width: 260rpx;
	height: 120rpx;
	line-height: 120rpx;
	color: #FFF;
	background-color: #02a2f4;
	/* background-color: #e5c000; */
	font-size: 36rpx;
}

.sendcar-bottome-nav-r>button+button {
	background-color: #02a2f4;
	margin-left: 5rpx;
}
</style>
